import { createRouter, createWebHashHistory } from 'vue-router'
import carryUserDetail from './index.vue'
import carryUserNickName from './carryUserNickName.vue'
import carryUserAge from './carryUserAge.vue'
import carryUserSex from './carryUserSex.vue'
import carryUserHealthCard from './carryUserHealthCard.vue'
import carryUserFacephoto from './carryUserFacephoto.vue'
import carryUserTitck from './carryUserTitck.vue'

const routes = [
  {
    path: '/',
    component: carryUserDetail,
    meta: {
      title: '携行用户',
      tabShow: true,
    },
  },
  {
    path: '/nickName',
    name: 'nickName',
    meta: {
      title: '携行用户昵称',
      tabShow: true,
    },
    component: carryUserNickName,
  },
  {
    path: '/age',
    name: 'age',
    meta: {
      title: '携行用户年龄',
      tabShow: true,
    },
    component: carryUserAge,
  },
  {
    path: '/sex',
    name: 'sex',
    meta: {
      title: '携行用户性别',
      tabShow: true,
    },
    component: carryUserSex,
  },
  {
    path: '/carryUserHealthCard',
    name: 'carryUserHealthCard',
    meta: {
      title: '携行用户健康证',
      tabShow: true,
    },
    component: carryUserHealthCard,
  },
  {
    path: '/carryUserFacephoto',
    name: 'carryUserFacephoto',
    meta: {
      title: '携行用户人脸识别',
      tabShow: true,
    },
    component: carryUserFacephoto,
  },
  {
    path: '/titck',
    name: 'carryUserTitck',
    meta: {
      title: '携行用户泳票',
      tabShow: true,
    },
    component: carryUserTitck,
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
